package com.css.zfzx.sjcj.modules.hddcWorkRegion.repository;

import com.css.zfzx.sjcj.modules.hddcA1InvRgnHasMaterialTable.repository.entity.HddcA1InvrgnhasmaterialtableEntity;
import com.css.zfzx.sjcj.modules.hddcWorkRegion.repository.entity.HddcWorkregionEntity;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author zyb
 * @date 2020-11-30
 */
public interface HddcWorkregionRepository extends JpaRepository<HddcWorkregionEntity, String> {
    @Query(nativeQuery = true,value="select w.* from hddc_workregion  w where w.id=?1 and w.is_valid=1")
    HddcWorkregionEntity findbyId(String id);

    HddcWorkregionEntity findByUuidAndIsValid(String id, String isValid);
}
